<?php
if (isset($_COOKIE["Xige_User"]) or isset($_COOKIE["Xige_Pass"])){
$cookieuser=$_COOKIE["Xige_User"];
$cookiepass=$_COOKIE["Xige_Pass"];
$mysql = mysql_query("SELECT * FROM xige_user WHERE email='$cookieuser'");
$info=mysql_fetch_array($mysql);
if (md5($info['pass'])==$cookiepass){
$mysqlpass=md5($info['pass']);
}else{
$mysqlpass=rand(1000000000,9999999999);
}
}else{
$cookieuser=0;
$cookiepass=1;
$mysqlpass=2;
}
?>